import request from "@/utils/request";

export default {
  removeById(id) {
    return request({
      url: `/eduservice/edu-chapter/${id}`,
      method: "delete"
    });
  },
  save(chapter) {
    return request({
      url: `/eduservice/edu-chapter`,
      method: "post",
      data: chapter
    });
  },
  getById(id) {
    return request({
      url: `/eduservice/edu-chapter/${id}`,
      method: "get"
    });
  },
  updateById(chapter) {
    return request({
      url: `/eduservice/edu-chapter/${chapter.id}`,
      method: "put",
      data: chapter
    });
  }
};
